package com.aaa.test1;

/**
 * @Description:
 * @author:LiWei
 * @date:2022年10月25日13:14
 */
public class Test {
    public static void main(String[] args) {
        Point point1 = new Point(20, 2);
        System.out.println(point1);

        Point point2 = new Point(29.1, 2);
        System.out.println(point2);

        Point point3 = new Point("222", "222");
        System.out.println(point3);

        Point point4 = new Point("22", 222);
        String x= (String) point4.getX();
//         数据安全问题
//        String y= (String) point4.getY();
        System.out.println(point4);
    }

}
